import { createModule } from '@/router/type'
import LayoutView from '@/layout/LayoutView.vue'

export default createModule([
  {
    path: '/video',
    redirect: '/video/index',
    component: LayoutView,
    meta: {
      icon: import('~icons/menu/camera'),
      title: '摄像头'
    },
    children: [
      {
        path: 'index',
        name: 'VideoIndex',
        meta: { title: '摄像头' },
        component: () => import('@views/video/show-video.vue')
      },
      {
        path: 'manage',
        name: 'VideoManage',
        meta: { title: '摄像头管理' },
        component: () => import('@views/video/video-manage.vue')
      }
      // {
      //   path: 'demo',
      //   name: 'Demo',
      //   meta: { title: 'Demo' },
      //   component: () => import('@views/test.vue')
      // }
    ]
  }
], true)
